let add=(...arr)=>arr.reduce((a,b)=>a+b,0);
console.log(add(2,3,6));